package com.company.eduorder.feign.course;

import com.company.servicebase.to.order.CourseTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-edu")
@Component
public interface CourseFeignService {

    @GetMapping("/eduservice/course/getCourse/{id}")
    public CourseTo getCourseById(@PathVariable("id") String id);

}
